You can create rectangles
and regular polygons quickly. Creating polygons is a simple way
to draw equilateral triangles, squares, pentagons, hexagons, and so
on.
If
necessary, you can use EXPLODE to convert the
resulting polyline object into lines.
Draw Rectangles
Use RECTANG to create closed
polylines in a rectangular shape.
Draw Regular Polygons
Use POLYGON to create closed
polylines with between 3 and 1,024 equal-length sides. The following
illustrations show polygons created using three methods. In each
case, two points are specified.
To draw a circumscribed
polygon
- At the Command prompt, enter the number
of sides.
- Specify the center of the polygon (1).
- Enter c to specify
a polygon circumscribed about a circle.
- Enter the radius length (2).
To draw a polygon by specifying
one edge
-
- At the Command prompt, enter the number
of sides.
- Enter e (Edge).
- Specify the start point for one polygon
segment.
- Specify the endpoint of the polygon segment.
To draw an inscribed polygon
-
- At the Command prompt, enter the number
of sides.
- Specify the center of the polygon.
- Enter i to specify
a polygon inscribed within a circle of specified points.
- Enter the radius length.
To draw a rectangle
- Specify the first corner of the rectangle.
- Specify the other corner of the rectangle.
CommandsBOUNDARY
Creates a region or
a polyline from an enclosed area.
EXPLODE
Breaks a compound object
into its component objects.
POLYGON
Creates an equilateral
closed polyline.
RECTANG
Creates a rectangular
polyline.
System VariablesFILLMODE
Specifies whether hatches
and fills, 2D solids, and wide polylines are filled in.
HPBOUND
Controls the object
type created by HATCH and BOUNDARY.
PLINEWID
Stores the default polyline
width.
POLYSIDES
Sets the default number
of sides for the POLYGON command.
SNAPANG
Sets the snap and grid
rotation angle for the current viewport relative to the current
UCS.